package es.gesfutbol.util;

import java.util.Comparator;

import es.gesfutbol.domini.implementacio.Comentari;

public class OrdenaComentariPerId implements Comparator<Object>{

	@Override
	public int compare(Object o1, Object o2) {
		Comentari c1 = (Comentari)o1;
		Comentari c2 = (Comentari)o2;
		return c2.getIdComentari().compareTo(c1.getIdComentari());
	}
	
	public boolean equals(Object o) {
	    return this == o;
	  }

}
